package nancal.mp.db.mongo.entity.admin

import nancal.mp.db.mongo.base.shop.DiscussItem
import nbcp.base.db.IdName
import nbcp.base.db.IdUrl
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.model.BaseMarkEntity
import org.springframework.data.mongodb.core.mapping.Document


/**
 * 工单
 */
@Document
@DbEntityGroup("admin")
data class WorkBill(
        var corp: IdName = IdName(),
        var title: String = "",
        var content: String = "",
        var images: MutableList<IdUrl> = mutableListOf(),
        var discussions: MutableList<DiscussItem> = mutableListOf()      //跟贴讨论区
) : BaseMarkEntity()